public class class_58 {
    public static void main(String[] args) {
        int []arr = {-1,2,3,4,5,6,7,66,9,10};
        int max=arr[0];
        for (int i =1; i < arr.length; i++) {
            if(arr[i]>max){
                max=arr[i];
            }
        }
        System.out.println("max:="+max);
        int min=arr[0];
        for (int i = 1; i < arr.length; i++) {
            if(arr[i]<min){
                min=arr[i];
            }
        }
        System.out.println("min:="+min);
    }
}
